import request from './index'

export const doList = (data: any, page?: string) => {
  return request.ajax({
    data,
    url: '/RoadLine/DetailList',
    type: 'GET',
    page: page,
  })
}
export const doAdd = (data: any, page?: string) => {
  return request.ajax({
    data,
    url: '/RoadLine/Add',
    type: 'POST',
    page: page
  })
}

export const doEdit = (data: any, page?: string) => {
  return request.ajax({
    data,
    url: '/RoadLine/Update',
    type: 'POST',
    page: page
  })
}

export const doDel = (data: any, page?: string) => {
  return request.ajax({
    data,
    url: '/RoadLine/Delete',
    type: 'POST',
    page: page
  })
}